<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>peach.ga.base.GA</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="peach-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a href="http://code.google.com/p/peach">Peach - Computational Intelligence for Python</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="peach-module.html">Package&nbsp;peach</a> ::
        <a href="peach.ga-module.html">Package&nbsp;ga</a> ::
        <a href="peach.ga.base-module.html">Module&nbsp;base</a> ::
        Class&nbsp;GA
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="peach.ga.base.GA-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class GA</h1><p class="nomargin-top"><span class="codelink"><a href="peach.ga.base-pysrc.html#GA">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_peach_ga" name="uml_class_diagram_for_peach_ga">
<area shape="rect" id="node47" href="javascript:void(0);" title="hash(x)" alt="" coords="609,31,885,49"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x+y" alt="" coords="609,52,885,71"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="y in x" alt="" coords="609,71,885,89"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="del x[y]" alt="" coords="609,89,885,108"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="del x[i:j]" alt="" coords="609,108,885,127"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x==y" alt="" coords="609,127,885,145"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x&gt;=y" alt="" coords="609,145,885,164"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x.__getattribute__(&#39;name&#39;) &lt;==&gt; x.name" alt="" coords="609,164,885,183"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x[y]" alt="" coords="609,183,885,201"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x[i:j]" alt="" coords="609,201,885,220"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x&gt;y" alt="" coords="609,220,885,239"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x+=y" alt="" coords="609,239,885,257"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="x*=y" alt="" coords="609,257,885,276"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="iter(x)" alt="" coords="609,276,885,295"/>
<area shape="rect" id="node47" href="javascript:void(0);" title="stable sort IN PLACE; cmp(x, y) &#45;&gt; &#45;1, 0, 1" alt="" coords="609,313,885,332"/>
<area shape="rect" id="node1" href="javascript:void(0);" title="list() &#45;&gt; new empty list list(iterable) &#45;&gt; new list initialized from iterable&#39;s items" alt="" coords="597,6,896,338"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#elitist" title="If True, then the population is elitist." alt="" coords="17,383,1477,401"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#ranges" title="Holds the ranges for every variable. Although it is a writable property, care should be taken in changing parameters before ending the convergence." alt="" coords="17,401,1477,420"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#chromosome_size" title="This property hold the chromosome size for the population. Not writable." alt="" coords="17,420,1477,439"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#fx" title="Array containing the fitness value for every estimate in the population. Not writeable." alt="" coords="17,439,1477,457"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#best" title="Single vector containing the position of the best point found by all the individuals. Not writeable." alt="" coords="17,457,1477,476"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#fbest" title="Single scalar value containing the function value of the best point by all the individuals. Not writeable." alt="" coords="17,476,1477,495"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#fitness" title="Vector containing the fitness value for every individual in the population. This is not the same as the objective function value. Not writeable." alt="" coords="17,495,1477,513"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#__init__" title="Initializes the population and the algorithm." alt="" coords="17,516,1477,535"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#sanity" title="Sanitizes the chromosomes in the population." alt="" coords="17,535,1477,553"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#restart" title="Resets the optimizer, allowing the use of a new set of estimates. This can be used to avoid stagnation." alt="" coords="17,553,1477,572"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#step" title="Computes a new generation of the population, a step of the adaptation." alt="" coords="17,572,1477,591"/>
<area shape="rect" id="node46" href="peach.ga.base.GeneticAlgorithm-class.html#__call__" title="Transparently executes the search until the minimum is found. The stop criteria are the maximum error or the maximum number of iterations, whichever is reached first. Note that this is a __call__ method, so the object is called as a function. This method returns a tuple (x, e), with the best estimate of the minimum and the error." alt="" coords="17,591,1477,609"/>
<area shape="rect" id="node2" href="peach.ga.base.GeneticAlgorithm-class.html" title="A standard Genetic Algorithm" alt="" coords="5,358,1488,615"/>
<area shape="rect" id="node3" href="peach.ga.base.GA-class.html" title="GA is an alias to GeneticAlgorithm" alt="" coords="725,635,771,679"/>
</map>
  <img src="uml_class_diagram_for_peach_ga.gif" alt='' usemap="#uml_class_diagram_for_peach_ga" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
GA is an alias to <tt class="rst-rst-rst-docutils literal rst-rst-docutils literal rst-docutils literal">GeneticAlgorithm</tt>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="peach.ga.base.GeneticAlgorithm-class.html">GeneticAlgorithm</a></code></b>:
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#__call__">__call__</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#__init__">__init__</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#restart">restart</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#sanity">sanity</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#step">step</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>list</code></b>:
      <code>__add__</code>,
      <code>__contains__</code>,
      <code>__delitem__</code>,
      <code>__delslice__</code>,
      <code>__eq__</code>,
      <code>__ge__</code>,
      <code>__getattribute__</code>,
      <code>__getitem__</code>,
      <code>__getslice__</code>,
      <code>__gt__</code>,
      <code>__iadd__</code>,
      <code>__imul__</code>,
      <code>__iter__</code>,
      <code>__le__</code>,
      <code>__len__</code>,
      <code>__lt__</code>,
      <code>__mul__</code>,
      <code>__ne__</code>,
      <code>__new__</code>,
      <code>__repr__</code>,
      <code>__reversed__</code>,
      <code>__rmul__</code>,
      <code>__setitem__</code>,
      <code>__setslice__</code>,
      <code>__sizeof__</code>,
      <code>append</code>,
      <code>count</code>,
      <code>extend</code>,
      <code>index</code>,
      <code>insert</code>,
      <code>pop</code>,
      <code>remove</code>,
      <code>reverse</code>,
      <code>sort</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>list</code></b>:
      <code>__hash__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE VARIABLES ==================== -->
<a name="section-InstanceVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="peach.ga.base.GeneticAlgorithm-class.html">GeneticAlgorithm</a></code></b>:
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#elitist">elitist</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#ranges">ranges</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="peach.ga.base.GeneticAlgorithm-class.html">GeneticAlgorithm</a></code></b>:
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#best">best</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#chromosome_size">chromosome_size</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#fbest">fbest</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#fitness">fitness</a></code>,
      <code><a href="peach.ga.base.GeneticAlgorithm-class.html#fx">fx</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="peach-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a href="http://code.google.com/p/peach">Peach - Computational Intelligence for Python</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 31 16:59:35 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
